import { createContext } from 'react';
import { InternalNamePath } from '../interface';

export interface ListContextProps {
  getKey: (namePath: InternalNamePath) => [number, InternalNamePath];
}

const ListContext = createContext<ListContextProps | null>(null);

export default ListContext;
